<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    </head>
    <body>
           <a href="index.php?m=Index&c=new&a=add">添加帖子</a>
           <a href="index.php?m=Index&c=user&a=userupdateSmarty">用户信息</a>
               <table>
            {foreach from=$list key=$k item=$v}
               <tr>
                   <td><a href="index.php?m=Index&c=new&a=newContent">{$v.title}</a></td>
               </tr>
            {/foreach}
            </table>
            <hr/>
            <a href="index.php?m=Index&c=index&a=index&page=1">首页</a>
           {if $page > 1}
            <a href="index.php?m=Index&c=index&a=index&page={$page-1}">上一页</a>
            {/if}
            {if $page < $pagecount}
            <a href="index.php?m=Index&c=index&a=index&page={$page+1}">下一页</a>
            {/if}
            <a href="index.php?m=Index&c=index&a=index&page={$pagecount}">尾页</a>
             </div>
    </body>
</html>

